package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ArticleCommentsVO implements Serializable {
    private static final long serialVersionUID = 1L;
    private String articleId;
    private List<CommentItem> commentsList;

    @Data
    public static class CommentItem implements Serializable {
        private Integer id;
        private String userId;
        private String nickName;
        private String content;
        private List<String> contentImg;   // 新增图片字段
        private String avatarUrl;
        private List<ArticleChildCommentVo> childComment;
        private LocalDateTime createTime;  // 新增时间字段
    }
}